Correctly handle encoding for cache hash generation (#10128)
authorBrian Neradt <brian.neradt@gmail.com>
Tue, 1 Aug 2023 18:51:44 +0000 (13:51 -0500)
committerAdrian Bunk <bunk@debian.org>
Sun, 28 Apr 2024 18:24:00 +0000 (21:24 +0300)
commitd8b8c16dd9e1efb87724df1f5917c278011e3b17
tree1639940e01bba657d03f86ee2842d2f5e9571111
parentab682a581c238d38d114328f25a65846e598ea00
Correctly handle encoding for cache hash generation (#10128)

Since origins may treat URL encoded or unencoded paths, query
parameters, or fragments differently, we should cache them separately.
This updates our URL cache hashing logic to not unencode these
components of a URI.

Gbp-Pq: Name 0001-Correctly-handle-encoding-for-cache-hash-generation-.patch
proxy/hdrs/URL.cc
proxy/hdrs/unit_tests/test_URL.cc